﻿using Feicui.BeautyCRM.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Feicui.BeautyCRM.UIPortal.Controllers
{
    public class AccountController : Controller
    {
        //
        // GET: /Account/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Login()
        {
            return View();
        }


        [HttpPost]
        public ActionResult Login(Beauty_User model)
        {
            if (!ModelState.IsValid)
            {
                return Json(new { code = 1, msg = "请输入正确格式！" });
            }
            return Json(new { code = 0, msg = "登录成功！" });
        }

        
    }
}
